package chezsmithybot;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class WaveContent {

	public static class Id implements Serializable {

		public Id() {
		}

		public Id(java.lang.String str) {
			java.util.StringTokenizer token = new java.util.StringTokenizer(
					str, "::");
		}

		@Override
		public java.lang.String toString() {
			java.lang.String str = "";
			return str;
		}

		@Override
		public boolean equals(Object o) {
			if (this == o) {
				return true;
			}
			if (o == null) {
				return false;
			}
			if (o.getClass() != getClass()) {
				return false;
			}
			Id objToCompare = (Id) o;
			return true;
		}

	}

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	Key key;
	
	@Persistent
	private List<String> blips = null;
	
	@Persistent
	private String waveTitle = null;
	
	@Persistent
	private String waveID;
	
	public WaveContent() {
		blips = new ArrayList<String>();
		waveTitle = "";
	}
	
	public void setWaveTitle(String waveTitleText) {
		waveTitle = waveTitleText;
	}
	
	public String getWaveTitle() {
		return waveTitle;
	}
	
	public void setWaveID(String waveID) {
		this.waveID = waveID;
	}
	
	public String getWaveID() {
		return waveID;
	}

	public void setBlip(String blip) {
		this.blips.add(blip);
	}

	public List<String> getBlips() {
		return blips;
	}
	
	
}
